<div class="deal">	
	<div class="deal_content_top"></div>
	<div class="deal_content">
    <table class="table-style" style="width: 100%;" cellpadding="5px" cellspacing="0">
        <tbody>
			<tr class="table-title">
				<td><a href="?by=u.user_id&order=<?php echo ($this->by != "u.user_id" || $this->order == "desc") ? "asc" : "desc"; ?>">ID</a></td>
				<td><a href="?by=u.username&order=<?php echo ($this->by != "u.username" || $this->order == "desc") ? "asc" : "desc"; ?>">Tên tài khoản</a></td>
				<td><a href="?by=u.fullname&order=<?php echo ($this->by != "u.fullname" || $this->order == "desc") ? "asc" : "desc"; ?>">Họ tên</a></td>
				<td><a href="?by=u.email&order=<?php echo ($this->by != "u.email" || $this->order == "desc") ? "asc" : "desc"; ?>">Email</a></td>
				<td><a href="?by=g.group_name&order=<?php echo ($this->by != "g.group_name" || $this->order == "desc") ? "asc" : "desc"; ?>">Nhóm</a></td>
                <td>&nbsp;</td>
            </tr>
            <?php $i = 0 ?>
            <?php foreach ($this->paginator as $user): ?>
            <?php $i++ ?>
                <tr class="<?php echo $i % 2 == 0 ? 'even' : 'odd' ?>">
                    <td><?php echo $user->user_id ?></td>
                    <td><?php echo $user->username ?></td>
                    <td><?php echo $user->fullname ?></td>
                    <td>
                        <a href="mailto:<?php echo $user->email ?>"><?php echo $user->email ?></a></td>
                    <td><?php echo $user->group_name ?></td>
                    <td align="right">
                        <a href="<?php echo $this->baseUrl('index.php/admin_user/account/edit/id/'.$user->user_id) ?>">
                            <img alt="Edit" src="<?php echo $this->baseUrl('public/images/edit.png') ?>">
                        </a>
                        <a href="<?php echo $this->baseUrl('index.php/admin_user/account/delete/id/'.$user->user_id) ?>" onclick="if(!confirm('Delete ?',''))return false;">
                            <img alt="Delete" src="<?php echo $this->baseUrl('public/images/delete.png') ?>">
                        </a>
                    </td>
                </tr>
            <?php endforeach ?>
        </tbody></table>
    <?php echo $this->placeholder('paging') ?>
    <p><span class="button">
            <a href="<?php echo $this->baseUrl('index.php/admin_user/account/add') ?>">Tạo tài khoản</a></span>
    </p>
    <?php echo $this->paginator; ?>
</div>
<div class="deal_content_bottom"></div>
</div>
